home *** CD-ROM | disk | FTP | other *** search
-
-
-
- Talarm(2) Oct. 1, 1991 Talarm(2)
-
-
- N✓NA✓AM✓ME✓E
- Talarm - schedule an alarm to occur
-
- S✓SY✓YN✓NO✓OP✓PS✓SI✓IS✓S
- LONG Talarm( LONG time );
-
- D✓DE✓ES✓SC✓CR✓RI✓IP✓PT✓TI✓IO✓ON✓N
- If _✓t_✓i_✓m_✓e is greater than 0, schedule a SIGALRM signal to be
- delivered to the process that many seconds from now. Note
- that unless a handler for SIGALRM has been established by
- means of the _✓P_✓s_✓i_✓g_✓n_✓a_✓l function, then the signal will kill
- the process.
-
- If _✓t_✓i_✓m_✓e == 0, then any previously scheduled alarm is can-
- celled.
-
- If _✓t_✓i_✓m_✓e is negative, then no change is made to what alarms
- are scheduled; in this case, only the returned value (the
- number of seconds left before any alarm) is of interest.
-
- R✓RE✓ET✓TU✓UR✓RN✓NS✓S
- If an alarm had been scheduled before this call to _✓T_✓a_✓l_✓a_✓r_✓m,
- return the number of seconds remaining until that previ-
- ously scheduled alarm.
-
- Otherwise, return 0.
-
- S✓SE✓EE✓E A✓AL✓LS✓SO✓O
- _✓P_✓a_✓u_✓s_✓e(2), _✓P_✓s_✓i_✓g_✓n_✓a_✓l(2)
-
- B✓BU✓UG✓GS✓S
- Internal calculations are done in milliseconds, not sec-
- onds, so the returned value is not exactly accurate.
-
- For the same reason, setting an alarm more than 2 million
- seconds or so into the future will not work correctly.
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- Version 0.9 MiNT Programmer's Manual 1
-
-
-